package com.bluemsun.naturallanguageprocessing.dao;

import org.springframework.stereotype.Repository;

/**
 * @author : hucl
 * @describe :用户点赞
 */
@Repository
public interface GoodMapper {
    /**
     * 用户点赞
     * @param userId
     * @param questionId
     * @return
     */
    Integer userDoGood(int userId,int questionId);

    /**
     * 用户取消点赞
     * @param userId
     * @param questionId
     * @return
     */
    Integer userUndoGood(int userId,int questionId);

    /**
     * 获取用户点赞
     * @param userId
     * @return
     */
    Integer queryUserGoods(int userId,int questionId);



}
